<script>
export default {
  name: "filterPage",
  data() {
    return {
      msg:'今天还活着'
    }
  },
  filters:{
    setMsg1(data,format){
      console.log(data)
      console.log(format)
      return data
    }
  }
}
</script>

<template>
<div>
  {{msg|setMsg('全局')}}
  {{msg|setMsg('全局')|setMsg2('连着用')}}
  {{msg|setMsg1(1)}}
</div>
</template>

<style scoped lang="less">

</style>